<template>
  <div>mixin的使用:把各个组件中公共的js部分提取出来.所有的vue属性都可以提取:重名之时,它有自己的覆盖规则
    当data的属性和mixins里的data重名 以组件data的为准
    声明周期重复.两边都执行.先执行mixin的
    值为对象 components,computed.directive filter 以组件覆盖mixin的

  </div>
</template>

<script>
import mixin from '../mixinjs/usermixin.js'
export default {
  components: {},
  mixins: [mixin],
  props: {},
  data () {
    return {
      queryParams: {
        limit: 20,
      }
    }
  },
  computed: {},
  methods: {

  },
  created () {
    console.log(this.queryParams)
  },
  mounted () {

  },
}
</script>
<style scoped></style>
